package com.numberone.master.modules.paytask.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 充值任务管理Entity
 * @author ck
 * @version 2018-03-07
 */
public class Paytask extends DataEntity<Paytask> {
	
	private static final long serialVersionUID = 1L;
	private Long memid;		// memid
	private Date createtime;		// createtime
	private Long state;		// state
	private String name;		// name
	private String remark;		// remark
	private Long agentid;		// agentid
	
	public Paytask() {
		super();
	}

	public Paytask(String id){
		super(id);
	}

	public Long getMemid() {
		return memid;
	}

	public void setMemid(Long memid) {
		this.memid = memid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}
	
	@Length(min=0, max=256, message="name长度必须介于 0 和 256 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=2048, message="remark长度必须介于 0 和 2048 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Long getAgentid() {
		return agentid;
	}

	public void setAgentid(Long agentid) {
		this.agentid = agentid;
	}
	
}